package com.shop.web;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.shop.entity.Product;

public class ProductAction extends ActionSupport  {

	//private Product [] products ;
	private List<Product> products;
	@Override
	public String execute() throws Exception {
		for (Product product : products) {
			System.out.println(product);
		}
		return super.execute();
	}
	public List<Product> getProducts() {
		return products;
	}
	public void setProducts(List<Product> products) {
		this.products = products;
	}

	
	
	
}
